package com.info.method.service.impl;

import com.info.method.dao.LeveyJenningsKzpcsxxbDao;
import com.info.method.dao.LeveyJenningsKztyzbxxbDao;
import com.info.method.entity.Kzpcsxxb;
import com.info.method.entity.Kztyzbxxb;
import com.info.method.service.LeveyJenningsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * Author by lrjin, Email 659618618@qq.com, Date on 2018/11/12.
 * PS: Not easy to write code, please indicate.
 */
@Service
public class LeveyJenningsServiceImpl implements LeveyJenningsService {

    @Autowired
    private LeveyJenningsKzpcsxxbDao leveyJenningsDao;

    @Autowired
    private LeveyJenningsKztyzbxxbDao leveyJenningsKztyzbxxbDao;

    @Override
    public List<Kzpcsxxb> findAll() {
        return leveyJenningsDao.findAll();
    }

    @Override
    public List<Kzpcsxxb> findByFaid(int faid) {
        return leveyJenningsDao.findByFaid(faid);
    }

    @Override
    public Kztyzbxxb findKztyzbxxbByFaid(int faid) {
        return leveyJenningsKztyzbxxbDao.findByFaid(faid);
    }

}
